package com.xxx.mapper;

import com.xxx.pojo.Order;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

public interface OrderMapper {

    @Insert("insert into order_line values (#{name},#{img},#{indentId},#{dishId},#{packageId},#{taste},#{num},#{money})")
    int insertOrder(Order order);

    @Delete("delete from order_line where indent_id = #{id};")
    int delByIndentId(Long id);
}
